package ooday01;

public class CarExercise01Test {
    public static void main(String[] args) {
        CarExercise01 car1 = new CarExercise01();
        car1.name = "奔驰";
        car1.color = "黑色";
        car1.price = 2000000;
        car1.start();
        car1.stop();

        CarExercise01 car2 = new CarExercise01("宝马","白色",1000000);
        car2.start();
        car2.stop();

        CarExercise01 car3 = new CarExercise01("小汽车","白色",100000);
        car3.start();
        car3.stop();
    }
}
